package com.nbjtjc.common.bean;

public enum RECORDTYPEENUM {
    SUBMIT("提交记录",1),MEASURE("制定措施",2),MEASUREBACK("制定措施（退回）",21)
    ,REFORM("整改",3),ACCEPT("验收",4),BACK("退回重新整改",41)
    ,ACTIVE("",9),UNACTIVE("",10);
    private String name;
    private Integer code;
    public static String getName(Integer code){
        for(RECORDTYPEENUM recordStatus : RECORDTYPEENUM.values()){
            if(recordStatus.getCode().equals(code)){
                return recordStatus.getName();
            }
        }
        return "";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    RECORDTYPEENUM(String name, Integer code) {
        this.name = name;
        this.code = code;
    }
}
